Page({
  data:{
    item:{
      createdDate: '2016-12-12',
      city: "",
      projectName: "",
      building: 23,
      unit: 3,
      roomNumber: 102,
      orientation: "南",
      area: 35,
      houseType: '普通住宅',
      specialFactors: '无',
      serialNumber: 'SKN-JHK-IKL',
      loanAmount: 157
    }
  },
  onLoad:function(options){
    var params = JSON.parse(options.params)
    var itemTemp = this.data.item
    itemTemp["projectName"] = params.collaterals[0].projectName
    itemTemp["city"] = params.city.name
    this.setData({
      item: itemTemp
    })
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  }
})